galileo_sdk.business.objects.jobs.Job¶
- class galileo_sdk.business.objects.jobs.Job(job_id, receiver_id, mission_id, time_created, last_updated, status=None, cpu_count=1, gpu_count=0, memory_amount=1000, enable_tunnel=False, tunnel_port=None, tunnel_url=None, name=None, station_id=None, user_id=None, state=None, pay_status=None, pay_interval=None, total_runtime=None, archived=False, status_history=None)[source]¶
Job Object
- __init__(job_id, receiver_id, mission_id, time_created, last_updated, status=None, cpu_count=1, gpu_count=0, memory_amount=1000, enable_tunnel=False, tunnel_port=None, tunnel_url=None, name=None, station_id=None, user_id=None, state=None, pay_status=None, pay_interval=None, total_runtime=None, archived=False, status_history=None)[source]¶
- Parameters
job_id – UUID of the Job
receiver_id – UUID of the recipient Landing Zone
mission_id – UUID of the originating Mission
time_created – Time stamp of the Job run time
last_updated – Time stamp of last Job update
status – Current status of the Job
cpu_count – Number of CPUs claimed by the Job
gpu_count – Number of GPUs claimed by the Job
memory_amount – Amount of Memory in MB claimed by the Job
enable_tunnel – Boolean indicated if the job has tunnel access
tunnel_port – The container port exposed if tunneling is enabled
tunnel_url – The URL of the tunnel exposing the container if the job has tunneling enabled
name – Human readable name of the Job
station_id – UUID of the Station the Job was deployed to
user_id – UUID of the user who deployed the Job
state – Current state of the Job (potentially superceded by status)
pay_status – Currently unused
pay_interval – Currently unused
total_runtime – Total Job runtime in seconds
archived – Boolean indicating if job is archived
status_history – Dictionary of Job status and time stamp history
Methods
__delattr__
(name, /)Implement delattr(self, name).
__dir__
()Default dir() implementation.
__eq__
(value, /)Return self==value.
__format__
(format_spec, /)Default object formatter.
__ge__
(value, /)Return self>=value.
__getattribute__
(name, /)Return getattr(self, name).
__gt__
(value, /)Return self>value.
__hash__
()Return hash(self).
__init__
(job_id, receiver_id, mission_id, …)- param job_id
UUID of the Job
__init_subclass__
This method is called when a class is subclassed.
__le__
(value, /)Return self<=value.
__lt__
(value, /)Return self<value.
__ne__
(value, /)Return self!=value.
__new__
(**kwargs)__reduce__
()Helper for pickle.
__reduce_ex__
(protocol, /)Helper for pickle.
__repr__
()Return repr(self).
__setattr__
(name, value, /)Implement setattr(self, name, value).
__sizeof__
()Size of object in memory, in bytes.
__str__
()Return str(self).
__subclasshook__
Abstract classes can override this to customize issubclass().
Attributes
__dict__
__doc__
__module__
__weakref__
list of weak references to the object (if defined)